import React, { Component } from 'react'

class Header2 extends Component {
  render() {
    const {leftSlot,centerSlot, rightSlot} = this.props
    return (
      <div className='header'>
        <div className="left">
          {leftSlot}
        </div>
        <div className="center">
          {centerSlot}
        </div>
        <div className="right">
          {rightSlot}
        </div>
      </div>
    )
  }
}

export default Header2